import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

import router from './router'
app.use(router)

/**
 * 第三方地图工具
 */
import VueCesium from 'vue-cesium'
import 'vue-cesium/dist/index.css'
app.use(VueCesium, {
    cesiumPath: 'https://lib.baomitu.com/cesium/1.98.1/Cesium.js',
    accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiMDhkYTczYS1iMjhiLTQ1YjQtYWI4ZS1lZjFkMzRmNzU5YzQiLCJpZCI6NDQ0MDMsImlhdCI6MTYxNzk2MDA5N30.H55MYwd31wjvNKmYZmNdk2VtPRy9hujwrnnxgVXmPow',
})

/**
 * 引入 ElementPlus 和配套的 icon 图标
 */
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'
app.use(ElementPlus)
Object.keys(Icons).forEach((key: string) => {
    app.component(key, Icons[key as keyof typeof Icons])
})

app.mount('#app')
